package io;

import java.io.File;
import java.io.IOException;
import java.util.Scanner;

public class Demo3 {
    public static void main(String[] args) throws IOException {
        Scanner scanner= new Scanner(System.in);
        File file = new File("./text.txt");
        file.createNewFile();//删除动作在JVM运行结束后才能执行
        scanner.next();
//        System.out.println(file.delete());
        System.out.println(file.exists());
    }
}
